Providing Compatibility in the ImageWriter II Driver
This section describes the override functions that comprise the portion of the ImageWriter II printer driver that provides compatibility with the Macintosh Printing Manager. This portion of the driver needs to override any of the Printing Manager compatibility messages that must take into account specific characteristics of the printing device. The functions that override such messages include the following:
All of the Macintosh Printing Manager compatibility messages, including those that correspond to these override functions, are described in the section "Compatibility Messages" beginning on page 4-147 in the chapter "Printing Messages." The code for the overrides used by the ImageWriter II printer driver is found in the QuickDraw GX sample code.
- The
SD_ConvertPrintRecordTo
function uses knowledge of the ImageWriter printer characteristics to convert an old print record into a universal print structure.- The
SD_ConvertPrintRecordFrom
function converts a universal print structure into Macintosh Printing Manager print record for the ImageWriter II.- The
SD_PrintRecordToJob
function forwards theGXPrintRecordToJob
message and then converts one of the resultant settings into an option in the job collection that is used by the driver.- The
SD_PrValidate
function validates the current print record by filling it in with the current settings for the application and printing device.- The
SD_PrJobInit
function first forwards theGXPrJobInit
message to display the default settings in the Print dialog box, then disables some of the items, based on the current settings for the printing device.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help